import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { EnumWXUserRelaCodeType } from './wxUserRelaCode.enum';

@Entity()
export class WxUserRelaCode {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'wx_user' })
  wx_user: string;

  @Column({ name: 'only_wx_user' })
  only_wx_user: string;

  @Column({ name: 'type' })
  type: EnumWXUserRelaCodeType;

  @Column({ name: 'create_time' })
  create_time: Date;
}
